package cn.fbs.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel("新建目标实体")
public class NewTCodeTargetType implements Comparable<NewTCodeTargetType>{

    @ApiModelProperty(name = "zbnm", value = "装备内码")
    private String zbnm;

    @ApiModelProperty(name = "zbzlnm", value = "装备种类内码")
    private String zbzlnm;

    @ApiModelProperty(name = "xh", value = "序号")
    private String xh;

    @ApiModelProperty(name = "mc", value = "名称")
    private String mc;

    @ApiModelProperty(name = "zbjc", value = "装备简称")
    private String zbjc;

    @ApiModelProperty(name = "jldw", value = "计量单位")
    private String jldw;

    @ApiModelProperty(name = "jdbz", value = "节点标志")
    private String jdbz;

    @ApiModelProperty(name = "sjsj", value = "数据时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sjsj;

    //BM 别名
    @ApiModelProperty(name = "bm", value = "别名")
    private String bm;

    @ApiModelProperty(name = "mjnm", value = "密级内码")
    private String mjnm;

    @ApiModelProperty(name = "xsbz", value = "线标")
    private String xsbz;




    public String getZbnm() {
        return zbnm;
    }

    public void setZbnm(String zbnm) {
        this.zbnm = zbnm;
    }

    public String getZbzlnm() {
        return zbzlnm;
    }

    public void setZbzlnm(String zbzlnm) {
        this.zbzlnm = zbzlnm;
    }

    public String getXh() {
        return xh;
    }

    public void setXh(String xh) {
        this.xh = xh;
    }

    public String getMc() {
        return mc;
    }

    public void setMc(String mc) {
        this.mc = mc;
    }

    public String getZbjc() {
        return zbjc;
    }

    public void setZbjc(String zbjc) {
        this.zbjc = zbjc;
    }

    public String getJldw() {
        return jldw;
    }

    public void setJldw(String jldw) {
        this.jldw = jldw;
    }

    public String getJdbz() {
        return jdbz;
    }

    public void setJdbz(String jdbz) {
        this.jdbz = jdbz;
    }

    public Date getSjsj() {
        return sjsj;
    }

    public void setSjsj(Date sjsj) {
        this.sjsj = sjsj;
    }

    public String getBm() {
        return bm;
    }

    public void setBm(String bm) {
        this.bm = bm;
    }

    public String getMjnm() {
        return mjnm;
    }

    public void setMjnm(String mjnm) {
        this.mjnm = mjnm;
    }

    public String getXsbz() {
        return xsbz;
    }

    public void setXsbz(String xsbz) {
        this.xsbz = xsbz;
    }

    @Override
    public String toString() {
        return "NewTCodeTargetType{" +
                "zbnm='" + zbnm + '\'' +
                ", zbzlnm='" + zbzlnm + '\'' +
                ", xh='" + xh + '\'' +
                ", mc='" + mc + '\'' +
                ", zbjc='" + zbjc + '\'' +
                ", jldw='" + jldw + '\'' +
                ", jdbz='" + jdbz + '\'' +
                ", sjsj=" + sjsj +
                ", bm='" + bm + '\'' +
                ", mjnm='" + mjnm + '\'' +
                ", xsbz='" + xsbz + '\'' +
                '}';
    }

    @Override
    public int compareTo(NewTCodeTargetType newTCodeTargetType) {
        return mc .compareTo(newTCodeTargetType. mc );
    }
}
